﻿/******************************************************************
** 文 件 名: BD_Payment_View.aspx.cs
** Copyright (c) 2010-2012 Honestysoft (GuangZhou) Co.,LTD
** 创 建 人: 蔡少鹏
** 创建日期: 2012-3-15 19:35:24
** 描    述: 支付单查看页面
** 版    本: 2.0.0.0
** 修改描述:
** 修 改 人:
** 修改日期:
******************************************************************/
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Honestysoft.BaseObject;
using Honestysoft.Baseframework.WebUI;
using Honestysoft.Financing.Model;


namespace Honestysoft.Financing.WebUI.Module.Contract
{
	public partial class BD_Payment_View : BasePage
	{	
		protected override void Page_Load(object sender, EventArgs e)
        {
			base.Page_Load(sender, e);
            if (!IsPostBack)
            {
                Bind();
            }
        }		
		/// <summary>
        /// 绑定页面
        /// </summary>
        private void Bind()
        {
           	BD_Payment obj = new BaseBusinessLogic<BD_Payment>().GetEntity(Request.QueryString["ID"]);
			if(obj == null){ return; }
			_ID = obj.ID;
			_ContractID = obj.ContractID;
			_PaymentCode = obj.PaymentCode;
			_Amount = obj.Amount.ToString();
			_PaymentDate = obj.PaymentDate.HasValue ? obj.PaymentDate.Value.ToString("yyyy-MM-dd") : "";
			_TotalAmount = obj.TotalAmount.ToString();
			_ContractAmount = obj.ContractAmount.ToString();
			_TotalPercent = obj.TotalPercent.ToString();
			_PaymentType = Honestysoft.DictionaryHelper.DictionaryInstance.GetDictionaryText(obj.PaymentType);
			_PaymentSource = Honestysoft.DictionaryHelper.DictionaryInstance.GetDictionaryText(obj.PaymentSource);
			_Remark = obj.Remark;
			_PaymentBuState = Honestysoft.EnumHelper.EnumInstance.GetEnumDataText(obj.PaymentBuState);
			_Creator = obj.Creator;
			_CreateTime = obj.CreateTime.ToString("yyyy-MM-dd");
        }
		
		/// <summary>
        /// 标识
        /// </summary>
		protected string _ID = "";
		/// <summary>
        /// 合同标识
        /// </summary>
		protected string _ContractID = "";
		/// <summary>
        /// 支付单号
        /// </summary>
		protected string _PaymentCode = "";
		/// <summary>
        /// 本期实际支付
        /// </summary>
		protected string _Amount = "";
		/// <summary>
        /// 支付日期
        /// </summary>
		protected string _PaymentDate = "";
		/// <summary>
        /// 至本期累计支付
        /// </summary>
		protected string _TotalAmount = "";
		/// <summary>
        /// 本期合同金额
        /// </summary>
		protected string _ContractAmount = "";
		/// <summary>
        /// 累计支付百分比
        /// </summary>
		protected string _TotalPercent = "";
		/// <summary>
        /// 费用类别
        /// </summary>
		protected string _PaymentType = "";
		/// <summary>
        /// 支付来源
        /// </summary>
		protected string _PaymentSource = "";
		/// <summary>
        /// 备注
        /// </summary>
		protected string _Remark = "";
		/// <summary>
        /// 业务状态
        /// </summary>
		protected string _PaymentBuState = "";
		/// <summary>
        /// 创建人
        /// </summary>
		protected string _Creator = "";
		/// <summary>
        /// 创建日期
        /// </summary>
		protected string _CreateTime = "";
	}
}